<template>
	<view class="index_shell">
		<headnav></headnav>
		 <swiper
		                :indicator-dots="true"
		                class="swiper"
		        >
		            <swiper-item>
		                <u-grid :border="true">
		                    <u-grid-item
		                            :customStyle="{width:220+'rpx',height:220+'rpx'}"
		                            v-for="(item, index) in swiperList"
		                            :index="index"
		                            :key="index"
		                    >
		                        <u-icon
		                                :customStyle="{paddingTop:20+'rpx'}"
		                                :name="item"
		                                :size="22"
		                        ></u-icon>
		                        <text class="grid-text">{{ '宫格' + (index + 1) }}</text>
		                    </u-grid-item>
		                </u-grid>
		            </swiper-item>
		            <swiper-item>
		                <u-grid :border="true">
		                    <u-grid-item
		                            :customStyle="{width:220+'rpx',height:220+'rpx'}"
		                            v-for="(item, index) in swiperList"
		                            :index="index + 9"
		                            :key="index"
		                    >
		                        <u-icon
		                                :customStyle="{paddingTop:20+'rpx'}"
		                                :name="item"
		                                :size="22"
		                        ></u-icon>
		                        <text class="grid-text">{{ '宫格' + (index + 1) }}</text>
		                    </u-grid-item>
		                </u-grid>
		            </swiper-item>
		            <swiper-item>
		                <u-grid :border="true">
		                    <u-grid-item
		                            :customStyle="{width:220+'rpx',height:220+'rpx'}"
		                            v-for="(item, index) in swiperList"
		                            :index="index + 18"
		                            :key="index"
		                    >
		                        <u-icon
		                                :customStyle="{paddingTop:20+'rpx'}"
		                                :name="item"
		                                :size="22"
		                        ></u-icon>
		                        <text class="grid-text">{{ "宫格" + (index + 1) }}</text>
		                    </u-grid-item>
		                </u-grid>
		            </swiper-item>
		        </swiper>
	</view>
</template>

<script>
	import headnav from '../../components/headnav.vue'
	export default {
		components:{
			headnav
		},
		data() {
			return {
				swiperList: ['integral', 'kefu-ermai', 'coupon', 'gift', 'scan', 'pause-circle', 'wifi', 'email', 'list'],
			}
		},
		onLoad() {
			
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
.index_shell{
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}
 .swiper {
        height: 720rpx;
    }

    .grid-text {
        font-size: 14px;
        color: #909399;
        padding: 10rpx 0 20rpx 0rpx;
        /* #ifndef APP-PLUS */
        box-sizing: border-box;
        /* #endif */
    }
</style>
